home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Advisor / CD-ROM Advisor.iso / prodemo / demo / bill.dxr / 00001.ls next >
Encoding:
Text File  |  1995-09-13  |  1.2 KB  |  33 lines

  1. on startMovie
  2.   global gChannelForHighButtons, gChannelForSound, gCuesForVoice, gLabelsForVoiceCues, gCountOfCues, gPreTicksForCue, gNextCueIndex, gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
  3.   set gChannelForHighButtons to 5
  4.   set gChannelForSound to 1
  5.   set the puppet of sprite gChannelForHighButtons to 1
  6.   set the visible of sprite gChannelForHighButtons to 0
  7.   set the ink of sprite gChannelForHighButtons to 0
  8.   set gCuesForVoice to [60, 190, 190, 590, 800, 1567, 1821, 2188, 2799, 3040, 3370]
  9.   set gLabelsForVoiceCues to ["remem", "actual", "six", "thats", "hardest", "first", "wide", "felt", "other", "guess", "lets"]
  10.   set gCountOfCues to 11
  11.   set gPreTicksForCue to 0
  12.   set gRadiusOfExitButton to 32
  13.   set gCenterOfMenuH to 141
  14.   set gCenterOfMenuV to 443
  15.   set gUseMenuButton to 0
  16.   set gLabelForEndScreen to "endinfo"
  17. end
  18.  
  19. on isWithinExitButton h, v
  20.   global gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV
  21.   set hComp to gCenterOfMenuH - h
  22.   set vComp to gCenterOfMenuV - v
  23.   set r to sqrt((hComp * hComp) + (vComp * vComp)) < gRadiusOfExitButton
  24.   return r
  25. end
  26.  
  27. on stopSound
  28.   global gChannelForSound
  29.   if soundBusy(gChannelForSound) then
  30.     sound stop gChannelForSound
  31.   end if
  32. end
  33.